package com.whfc.mach.dao;

import com.whfc.mach.entity.AppDeviceMachData;
import org.apache.ibatis.annotations.Param;

public interface AppDeviceMachDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppDeviceMachData record);

    int insertSelective(AppDeviceMachData record);

    AppDeviceMachData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppDeviceMachData record);

    int updateByPrimaryKey(AppDeviceMachData record);

    /**
     * 插入or更新
     *
     * @param record
     * @return
     */
    int insertOrUpdate(AppDeviceMachData record);

    /**
     * 根据硬件ID查询
     *
     * @param deviceId
     * @return
     */
    AppDeviceMachData selectByDeviceId(@Param("deviceId") Integer deviceId);
}